package com.beiming.libra.dao;

import com.beiming.libra.domain.dto.responsedto.AreasDTO;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

import com.beiming.libra.base.MyMapper;
import com.beiming.libra.domain.Areas;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AreasMapper extends MyMapper<Areas> {

  /**
   * 根据当前地址编码查询下级地址
   */
  List<AreasDTO> getChildrenAreasByCode(@Param("code") String code);

  /**
   * 查询所有省份
   */
  List<AreasDTO> getAllProvinces();

  /**
   * 根据code查询地址信息
   */
  List<Areas> getAddressByCode(@Param("code") String code);
}

